import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import request from '@/api/index'
import VueLazyload from 'vue-lazyload'
//element插件引入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'default-passive-events'
//全局样式引入
import "@/assets/style/base.css"
//过滤器的插入使用
import '@/plugins/utils'

Vue.config.productionTip = false

Vue.use(ElementUI);
Vue.prototype.$ELEMENT = { size: 'small', zIndex: 3000 };
// 图片懒加载
Vue.use(VueLazyload, {
  loading: require("./assets/img/loading.gif")
})

//全局挂载api
Vue.prototype.$request = request

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
